package cn.cumulomq.entity;

import java.util.Date;
import java.util.Map;

import cn.ait.umc.message.Message;

/**
 * AFTN & SITA & AMHS Message
 * @author maxuedong
 *
 */
public class TeleMessage extends Message {

    /**
	 * 
	 */
    private static final long serialVersionUID = -1597553061641598873L;

    private String id;

    private String priorityIndicator;
    
    //收电地址
    private String addressees;

    private String filingTime;
    
    //发电地址
    private String originator;

    private boolean priorityAlarm;

    private String text;

    private String optionalHeading;

    private String msgType;

    private int msgDirection;

    private String doubleSignature;

    private String messageIdentity;

    private String msgCategory;
    private boolean markViewed;
    private Date createTime;
    
    private String userName;
    private String parseJson;
    private Map<String,Object> parseMap;
    
    private Date queryStartDate;
    private Date queryEndDate;
    
	public TeleMessage() {
//		this.setId(UUID.randomUUID().toString());
	}
    
    public TeleMessage(String aId,String aCsn, Date aReceivedDate, String aCid,String aMsgType, String aFilingTime, String aDoubleSignature, 
                String aText, String aAddressees, String aPriorityIndicator, String aUserName){
    	this.setId(aId);
    	this.setCsn(aCsn);
    	this.setCid(aCid);
    	this.setMsgType(aMsgType);
    	this.setFilingTime(aFilingTime);
    	this.setDoubleSignature(aFilingTime);
    	this.setText(aText);
    	this.setAddressees(aAddressees);
    	this.setPriorityIndicator(aPriorityIndicator);
    	this.setReceivedDate(aReceivedDate);
    	this.setUserName(aUserName);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPriorityIndicator() {
        return priorityIndicator;
    }

    public void setPriorityIndicator(String priorityIndicator) {
        this.priorityIndicator = priorityIndicator;
    }

    public String getAddressees() {
        return addressees;
    }

    public void setAddressees(String addressees) {
        this.addressees = addressees;
    }

    public String getFilingTime() {
        return filingTime;
    }

    public void setFilingTime(String filingTime) {
        this.filingTime = filingTime;
    }

    public String getOriginator() {
        return originator;
    }

    public void setOriginator(String originator) {
        this.originator = originator;
    }

    public boolean isPriorityAlarm() {
        return priorityAlarm;
    }

    public void setPriorityAlarm(boolean priorityAlarm) {
        this.priorityAlarm = priorityAlarm;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getOptionalHeading() {
        return optionalHeading;
    }

    public void setOptionalHeading(String optionalHeading) {
        this.optionalHeading = optionalHeading;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public int getMsgDirection() {
        return msgDirection;
    }

    public void setMsgDirection(int msgDirection) {
        this.msgDirection = msgDirection;
    }

    public String getDoubleSignature() {
        return doubleSignature;
    }

    public void setDoubleSignature(String doubleSignature) {
        this.doubleSignature = doubleSignature;
    }

    public String getMessageIdentity() {
        return messageIdentity;
    }

    public void setMessageIdentity(String messageIdentity) {
        this.messageIdentity = messageIdentity;
    }

    public boolean isMarkViewed() {
        return markViewed;
    }

    public void setMarkViewed(boolean markViewed) {
        this.markViewed = markViewed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMsgCategory() {
		return msgCategory;
	}

	public void setMsgCategory(String msgCategory) {
		this.msgCategory = msgCategory;
	}

	public String getParseJson() {
		return parseJson;
	}

	public void setParseJson(String parseJson) {
		this.parseJson = parseJson;
	}

	public Date getQueryStartDate() {
		return queryStartDate;
	}

	public void setQueryStartDate(Date queryStartDate) {
		this.queryStartDate = queryStartDate;
	}

	public Date getQueryEndDate() {
		return queryEndDate;
	}

	public void setQueryEndDate(Date queryEndDate) {
		this.queryEndDate = queryEndDate;
	}

	public Map<String,Object> getParseMap() {
		return parseMap;
	}

	public void setParseMap(Map<String,Object> parseMap) {
		this.parseMap = parseMap;
	}
    
}
